//*****************************************************************************
//
// ABEC3 Solving File
// Project: ABEC21
//
//*****************************************************************************

// Embedding another file, which specifies coordinates

File="Nodes.txt"

 
Control_Solver
  f1=30;  f2=3000;
  NumFrequencies=96;  Abscissa=log;
  MeshFrequency=2000Hz
  Sym=z; Dim=3D
  Meshing=Delaunay
  NUC=True


Subdomain_Properties "Exterior"
  Subdomain=1
  ElType=Exterior 
  IBPlane=x;  IBOffset=-0.5m  // Reflecting wall behind the speaker
  
Subdomain_Properties "Enclosure"
  Subdomain=2

Subdomain_Properties "Horn"
  Subdomain=3
  
 
Elements "Enclosure-Exterior"
  RefNodes="N"
  SubDomain=1
  103   2001  4001  4002  2002
  115   2003  4003  4004  2004
  127   2005  4005  4006  2006
  131   2008  2007  4007  4008
  137   2009  4009  4010  2010
  517   5018  5021  5020  5019
  519   5022  5025  5024  5023


Elements "Enclosure-Interior"
  RefNodes="N"
  SubDomain=2
  101   1001  1002  3002  3001  
  113   1003  1004  3004  3003
  125   1005  1006  3006  3005
  129   1008  3008  3007  1007
  135   1009  1010  3010  3009
  139   1011  1012  3012  3011
  141   3013  3014  3015  3012
  143   1014  1015  3016  3015
  151   1016  1017  3017  3016
  155   1018  1019  3019  3018
  157   3019  3020  3021  3022
  159   1021  1022  3023  3022
  161   3023  3024  3025  3026
  163   1024  1025  3027  3026
  501   5001  5002  5003  5004
  503   5004  5006  5007
  505   5001  5004  5007
  507   5006  5008  5009  5007
  509   5008  5010  5011  5009
  511   5009  5011  5012  5013
  
WallImpedance
  RefElements="Enclosure-Interior"
  ImpType=Damping
  Value=0.005


Elements "Horn"
  RefNodes="N"
  SubDomain=3
  145   2011  4011  4012  2012
  147   4013  4012  4015  4014
  149   2014  4015  4016  2015
  153   2016  4016  4017  2017
  171   2018  4018  4019  2019
  173   4019  4022  4021  4020
  175   2021  4022  4023  2022
  177   4023  4026  4025  4024
  179   2024  4026  4027  2025
  513   5014  5016  5017
  515   5014  5015  5016
  
Elements "Interface"
  RefNodes="N"
  Subdomain=3, 1
  EdgeLength=30mm
  601   6001  6002  6003  6004

    
// DPH75 (small driver on right hand side)
Diaphragm  "Drv1 cone front"
  DrvGroup=1001                // Driving group link to observation stage
  SubDomain=3                  // Front side belongs to sub-domain 3
  RefNodes="N"
  Meshing=Bifu                 // Bifurcation is enforced for IsSimple
  EdgeLength=15mm
  Position=2013,2012,4013      // Triangle giving position
  Side=Front                   // Creates elements for the front side of the diaphragm
  Simple=true                  // Simple model
  dD=63mm                      // Diameter of cone  (56.5mm + 6.5mm suspension)
  tD1=8mm                      // Inner depth of cone to base of dust cap
  dD1=37mm                     // Diameter of dust cap
  hD1=9mm                      // Height of dust cap
  hD2=15mm                     // Height of total cone on the outside
  dVC=23mm                     // Diameter of voice coil
  hVC=7mm                      // Height of voice coil
  dM=71mm                      // Diameter of magnet
  hM=18mm                      // Height of magnet
  t1=-15mm                     // Axial offset of Diaphragm and baffle
  tb=15mm                      // Recess within baffle
  Color=0.3,0.3,0.3

Diaphragm  "Drv1 cone rear"
  RefDiaphragm="Drv1 cone front"    // Inherite from "Cone front"
  DrvGroup=1002                 // Driving group link to observation stage
  SubDomain=2                   // This side belongs to sub-domain SubDomain=2
  Side=rear                     // This is the rear side of the diaphragm
  tb=0mm                        // No recess within baffle


Diaphragm  "Drv2 cone front"
  DrvGroup=2001                // Driving group link to observation stage
  SubDomain=3                  // Front side belongs to sub-domain 3
  RefNodes="N"
  Meshing=Bifu                 // Bifurcation is enforced for IsSimple
  EdgeLength=15mm
  Position=2020,2019,4020         // Triangle giving position
  Side=Front                   // Creates elements for the front side of the diaphragm
  Simple=true                  // Simple model
  dD=82mm                      // Diameter of cone  (72mm + 10mm suspension)
  tD1=10.5mm                   // Inner depth of cone to base of dust cap
  dD1=34mm                     // Diameter of dust cap
  hD1=6mm                      // Height of dust cap
  hD2=20mm                     // Height of total cone on the outside
  dVC=26mm                     // Diameter of voice coil
  hVC=10mm                     // Height of voice coil
  dM=69mm                      // Diameter of magnet
  hM=22.5mm                    // Height of magnet
  t1=-15mm                     // Recessing
  tb=15mm                      // Recess within baffle
  Color=0.3,0.3,0.3

Diaphragm  "Drv2 cone rear"
  RefDiaphragm="Drv2 cone front"      // Inherite from "Cone front"
  DrvGroup=2002                 // Driving group link to observation stage
  SubDomain=2                  // This side belongs to sub-domain SubDomain=2
  Side=rear                    // This is the rear side of the diaphragm
  tb=0mm                       // No recess within baffle
  
  
Diaphragm  "Drv3 cone front"
  RefDiaphragm="Drv2 cone front"     // Inherite from "Drv2 cone front"
  DrvGroup=3001                // Driving group link to observation stage
  SubDomain=3                  // Front side belongs to sub-domain 3
  Position=2023,2022,4024      // Triangle giving position

Diaphragm  "Drv3 cone rear"
  RefDiaphragm="Drv3 cone front"   // Inherite from "Cone front"
  DrvGroup=3002                // Driving group link to observation stage
  SubDomain=2                  // This side belongs to sub-domain SubDomain=2
  Side=rear                    // This is the rear side of the diaphragm
